<?php
/*
 * @Author: 李明
 * @Date: 2021-11-26 11:29:31
 * @LastEditTime: 2021-11-30 18:05:17
 * @LastEditors: 李明
 * @Description: 
 * @FilePath: /CRM2.0-PHP/app/Http/Resources/WorkingFamiles.php
 * @山东壹零贰肆信息科技有限公司
 */

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class WorkingFamiles extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
    public function toArray($request)
    {
        $familes =  parent::toArray($request);
        $familes['show_name'] = $this->open_bank . '(' . $this->account . ')';
        return $familes;
    }
}
